﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ShivamEMR.Model.Domain.MedicalDomain;
using System.ComponentModel.DataAnnotations;

namespace ShivamEMR.Model.Domain.PatientDomain
{
   public class Diagnosis
    {
        #region Properties
        public Guid ID { get; set; }
        public string Title { get; set; }
        public string Description { get; set; }
        public string Notes { get; set; } 
        #endregion

        #region ForeignKeyProperties
       [ForeignKey("Patient")]
        public Guid PatientID { get; set; }
       [ForeignKey("DiagnosisStatus")]
        public int DiagnosisStatusID { get; set; }
       [ForeignKey("Admission")]
        public Guid AdmissionID { get; set; }
       [ForeignKey("DiagnositicItem")]
        public Guid DiagnosticsItemID { get; set; } 
        #endregion

        #region NavigationalProperties
        public virtual Patient Patient { get; set; }       
        public virtual DiagnosisStatus DiagnosisStatus { get; set; }
        public virtual Admission Admission { get; set; }
        public virtual DiagnosticsItem DiagnositicItem { get; set; }
        public virtual ICollection<Disease> Diseases { get; set; }
        #endregion

    }
}
